package hushi.controller;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@org.springframework.stereotype.Controller
//@RequestMapping("user")
public class Controller {
    @RequestMapping("/user/login/{username}/{password}")
    public ModelAndView doPathVariable(@PathVariable("username")String username,
                                       @PathVariable("password")String password){
        System.out.println(username);
        System.out.println(password);
        return new ModelAndView("/search.jsp");
    }
}
